//
// Created by vcq on 21/4/14.
//

#pragma once

#include "model/grade.hpp"

static void GetAllGrades(request &req, response &res) {
    if (!check_login(req, res)) {
        return;
    }
    json item = mgetAllGrades();
    res.set_status_and_content(status_type::ok, item.dump(), req_content_type::json);
}